/*******************************************************************************
 * Copyright 2011 Andrea Guitto
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package com.andreaguitto.mobile.android.framework.base.orm;


public abstract class AGSQLiteDatabaseMetadata {
		
	private final String TABLE_NAME;
	public String getTableName(){
		return TABLE_NAME;
	}
	
	private final String SQL_CREATE_TABLE;
	public String getSQLCreate(){
		return SQL_CREATE_TABLE;
	}

	private final String SQL_DROP_TABLE;
	public String getSQLDrop(){
		return SQL_DROP_TABLE;
	}	
	
	private final String[] ARRAY_COLUMNS;
	public String[] getColumns(){
		return ARRAY_COLUMNS;
	}
	
	public static final String FIELD_ID = "_id";
	
	public AGSQLiteDatabaseMetadata(String tableName, String[] columns, String sqlCreate, String sqlDrop) {
		TABLE_NAME = tableName;
		ARRAY_COLUMNS = columns;
		SQL_CREATE_TABLE = sqlCreate;
		SQL_DROP_TABLE = sqlDrop;
	}
	
	public abstract String getLogTag();	
}
